Music Object Extension - Tracing

  Contents

About This Extension

The Tracing extension provides an easy way to watch calls to methods of the Music Object API and is a very useful tool to have when debugging sonification code. The extension offers a set of methods that can be used to control exactly which methods of the Music Object API are to be "watched". When a method is being watched, each call to the method will be displayed in the tracing window (either the Java console or a pop-up browser window), complete with the parameter values that are being passed.

What's New in the Latest Version

There is a dedicated version history for this extension, where you will be able to find out about the new features and possible issues with the most recent version. The version history for this extension is independent of the version history for the core Music Object API.

Getting This Extension

To get the "music-object-x-tracing.js" JavaScript file that implements this extension, simply right-click on this link (click-and-hold for Mac users). Then, from the menu that pops up, select the 'Save Link As...' or 'Save Target As...' option and save the file as "music-object-x-tracing.js" into an appropriate folder of the local copy of your Web site.

In case you have problems saving the file using the above link, the "music-object-x-tracing.js" file can also be found inside the documentation's "javascript" folder, along with the "music-object.js" file.

Dependencies

In order to use this extension, the following JavaScript file(s) must first be sourced in...

For more information on using extensions, consult the section About Music Object Extensions.

Reference

 Name   Short Description 
Instance Methods
enableTracing Lets you enable or disable tracing for all methods of a Music Object instance.
setMethodTracing Lets you enable or disable tracing for the specified method of a Music Object instance.
Static Methods
Music.enableTracing Lets you enable or disable tracing for all static methods of the Music Object API.
Music.setMethodTracing Lets you enable or disable tracing for the specified static method of the Music Object API.
Static Properties
Music.preferJavaConsole A boolean variable, specifying whether or not tracing output should be sent to the Java console on browsers where this is possible.
Music.tracingEnabled A boolean variable, acting as a master switch to enable or disable all tracing.

Instance Methods

 enableTracing

 
 CATEGORY   Instance Method 
 MODULE   Music Object Extension - Tracing 
 Min. Player Version   1.0.0 
 

The enableTracing instance method lets you enable or disable tracing for all methods of a Music Object instance.

SYNTAX    enableTracing ( TracingEnabledBOOL )

SPECIAL VALUES
VARIATIONS
NOTES
 setMethodTracing

 
 CATEGORY   Instance Method 
 MODULE   Music Object Extension - Tracing 
 Min. Player Version   1.0.0 
 

The setMethodTracing instance method lets you enable or disable tracing for the specified method of a Music Object instance.

SYNTAX    setMethodTracing ( InstanceMethodNameSTR , TracingEnabledBOOL )

SPECIAL VALUES
VARIATIONS
NOTES
Static Methods

 Music.enableTracing

 
 CATEGORY   Static Method 
 MODULE   Music Object Extension - Tracing 
 Min. Player Version   1.0.0 
 

The Music.enableTracing static method lets you enable or disable tracing for all static methods of the Music Object API.

SYNTAX    Music.enableTracing ( TracingEnabledBOOL )

SPECIAL VALUES
VARIATIONS
NOTES
 Music.setMethodTracing

 
 CATEGORY   Static Method 
 MODULE   Music Object Extension - Tracing 
 Min. Player Version   1.0.0 
 

The Music.setMethodTracing static method lets you enable or disable tracing for the specified static method of the Music Object API.

SYNTAX    Music.setMethodTracing ( StaticMethodNameSTR , TracingEnabledBOOL )

SPECIAL VALUES
VARIATIONS
NOTES
Static Properties

 Music.preferJavaConsole

 
 CATEGORY   Static Property 
 MODULE   Music Object Extension - Tracing 
 Type   boolean 
 Default Value   true 
 Access   read / write 
 

The Music.preferJavaConsole static property is A boolean variable, specifying whether or not tracing output should be sent to the Java console on browsers where this is possible.

 Music.tracingEnabled

 
 CATEGORY   Static Property 
 MODULE   Music Object Extension - Tracing 
 Type   boolean 
 Default Value   true 
 Access   read / write 
 

The Music.tracingEnabled static property is a boolean variable, acting as a master switch to enable or disable all tracing.